package com.ruantong.dingtalk.ding.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author jh.cjh
 * @description:钉钉请求预处理工具类
 * @date 2020-11-17
 */
public class DingRequestUtil {

    /**
     * 转化date为String
     *
     * @Param: [dateTime]
     * @Return: java.lang.String
     */
    public static String coverDate(LocalDateTime dateTime) {
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        return dateTimeFormatter.format(dateTime);
    }
}
